package com.sright.bcard.common.share.request;

import com.sright.bcard.common.service.share.dto.BaseDomain;
import lombok.Data;

import java.util.Map;

@Data
public class WechatTemplateDO extends BaseDomain {
    private static final long serialVersionUID = 7962400245976439721L;

    private String touser;
    private TemplateMsgDO mp_template_msg;

    @Data
    public static class TemplateMsgDO {
        private String appid;
        private String template_id;
        private String url;
        private MiniprogramDO miniprogram;
        private Map<String,DataDO> data;

        @Data
        public static class DataDO{
            private String value;
            private String color;
        }

        @Data
        public static class MiniprogramDO{
            private String appid;
            private String pagepath;
        }
    }
}
